import * as type from './type'
import http from 'utils/http'

const actionCreators = {
    getShoes () {
        return async dispatch => {
            const result = await http({
                url:'/tuan-wys/footwear/data.json'
            })
            const action = {
                type:type.GETSHOES,
                payload:result.data
            }
            dispatch( action )
        }
    }
}

export default actionCreators